<?php

namespace common\models\system;

use yii\db\ActiveRecord;

/**
 * Desc 管理员
 */
class AdminModel extends ActiveRecord {

    //状态-启用
    const STATUS_ENABLE = 1;
    //状态-禁用
    const STATUS_DISABLE = 2;
    //性别-男
    const SEX_MALE = 1;
    //性别-女
    const SEX_FENALE = 2;

    public static $status = [
        self::STATUS_ENABLE => '启用',
        self::STATUS_DISABLE => '禁用',
    ];
    public static $sex = [
        self::SEX_MALE => '男',
        self::SEX_FENALE => '女',
    ];

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%admin}}';
    }

}
